package com.imau.mapper;

import com.imau.bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {

   User selectByUserNameAndPassowrd(@Param("userName") String userName,@Param("password") String password);

   @Insert("insert into  tb_user (user_name,password) values(#{userName},#{password}) ")
   int insertUser(User user);


   @Select("select  * from tb_user where user_name = #{userName}")
   User selectByUserName(@Param("userName") String userName);
}
